package Class;

import java.awt.Color;

import javax.swing.JPanel;

import Listener.DragAndDropListener;

public class InutilePanel extends JPanel {

	private static final long serialVersionUID = 2031011049548098713L;
	
	private Inutile inutile;
	
	public InutilePanel(Color color) {
		super();

		this.setBackground(color);
		this.setTransferHandler(new InutileTransferHandler());
		this.enableDrag();
	}
	
	/** Methods **/
	
	public void enableDrag() {
        addMouseListener(new DragAndDropListener());
    }
	
	/** Getter/Setter **/

	public void setInutile(Inutile inutile) {
		System.out.println("Setting inutile object");
		this.inutile = inutile;
	}

	public Inutile getInutile() {
		System.out.println("Getting Inutile object");
		return inutile;
	}
}
